home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000236_the.earth.below@cinenet.net_Mon Jul 2 10:03:40 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
5KB
|
98 lines
Article: 12556 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!news-peer.gip.net!news.gsl.net!gip.net!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Dark Moon <the.earth.below@cinenet.net>
Newsgroups: comp.protocols.kermit.misc
Subject: Building C-Kermit197 on Solaris 2.6
Date: Sun, 01 Jul 2001 22:35:02 -0700
Organization: Less and less each day..
Message-ID: <GgAQ7AeH4WDL092yn@cinenet.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Yarn 0.92 with YES 0.22
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Complaints-To: newsabuse@supernews.com
Lines: 80
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12556
...with gcc 2.8.1 is not working for me. I will be using this build
strictly as a remote on my shell account, so I want only the interactive
command parser, and the script and protocol engines. Most of the rest
can stay out, as I have a 5 Meg. hard quota. My modified makefile
entry:
solaris2xgnc:
@echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
@echo 'Please read the comments that accompany the solaris2xg target.'
$(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc \
"CFLAGS = -g -O2 -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT \
-DDIRENT -DHDBUUCP -DNOUNICODE -DNOCSETS -DNODEBUG -DNOHELP -DNODISPLAY \
-DNONET -DNOLOCAL -DNODIAL -DNOCHANNELIO -DNOXMIT -DNOSCRIPT -DNOIKSD \
-DDCMDBUF -DNOSETKEY $(KFLAGS)" \
"LIBS= -lsocket -lnsl -lm -lresolv"
Although I'm using the 'solaris26gnc' target, I decided to modify this
one instead for use as a "fall-back", because that was the target that
successfully built cku192.
Well, first the compiler chokes and dies on an undeclared variable in
ckuusr.c. My patch:
316a317,320
> #ifdef OS2ORUNIX
> char ftpapp[CKMAXPATH+1] = { NUL, NUL }; /* ftp executable */
> #endif /* OS2ORUNIX */
>
So that fixes up that module and we're cruising, until we get to the
linker. I rebuilt from scratch a couple of times, first removing the
-DPOSIX define and then using 'solaris2xgnc'. In all cases the linker
died with:
gcc -o wermit \
ckcmai.o ckclib.o ckutio.o ckufio.o \
ckcfns.o ckcfn2.o ckcfn3.o ckuxla.o \
ckcpro.o ckucmd.o ckuus2.o ckuus3.o \
ckuus4.o ckuus5.o ckuus6.o ckuus7.o \
ckuusx.o ckuusy.o ckuusr.o ckucns.o \
ckudia.o ckuscr.o ckcnet.o ckusig.o \
ckctel.o ckcuni.o ckupty.o -lsocket -lnsl -lm -lresolv
Undefined first referenced
symbol in file
ck_linger ckcmai.o
netflui ckutio.o
keepalive ckcmai.o
netopen ckutio.o
sendbuf ckcmai.o
recvbuf ckcmai.o
dontroute ckcmai.o
netclos ckutio.o
ld: fatal: Symbol referencing errors. No output written to wermit
*** Error code 1
make: Fatal error: Command failed for target `xermit'
Current working directory /var/tmp/kermit
*** Error code 1
make: Fatal error: Command failed for target `solaris2xgnc'
What's missing? Are these libraries (or some others) out of date? If I
can get the up-to-date sources for just those without having to install
all of gcc, I could build those libraries and keep them just long enough
to build Kermit (I'm "borrowing" space in /var/tmp :).
On another note, I'm building for no network support, so when I first
started I left out -lsocket and -lresolv from the linker flags. I got
twice as many undefined symbol reports from the linker, pointing to the
Kermit networking modules. Of course I did 'make clean', put the flags
back in and built again, but...why is sockets support getting built in
when I asked for -DNONET (and took out -DTCPSOCKET)?
Jeff
--
{netcom} ,,/ "...he may not come until the Circle has been \,, {class of
/(-\ broken. And his birth shall mark both the /-)\ '94}
,---' /`-' beginning and the ending of an age." '-'\ `----,
/( )__)) --M.A.Pierce, _Birth of the Firebringer_ ((,==( )\
_ /_//___\\ __ -=<*>=- -=<*>=- -=<*>=- -=<*>=- -=<*>=- -=<*>=- ___\\ __\\ __
`` `` ~darkmoon~ -<at>- ~the~sky~above~net~ '' ''